package com.example.springUseAuto;

import javax.annotation.Resource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.springAutoHello.AutoHelloService;

@RestController
@SpringBootApplication
public class UseAuto {

	@Resource
	private AutoHelloService autoHelloService;
	
	@RequestMapping("/")
	public String index(){
		return autoHelloService.sayHello();
	}
	public static void main(String[] args) {
		SpringApplication.run(UseAuto.class, args);
	}
}
